package com.emm.yixun.common.app.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.emm.yixun.common.app.annotation.Constants;
import com.emm.yixun.common.app.check.TYWValidCheck;


@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
@net.sf.oval.configuration.annotation.Constraint(checkWith = TYWValidCheck.class)
public @interface TYWValid {
	int max() default Integer.MAX_VALUE;
	int min() default 0;
	String regModel() default Constants.XSS;
	boolean required() default false;
	String message() default "com.dsa.message.error.model";
}
